<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body style="margin:0px;background-color:#d9ead3">
	<form action="${pageContext.request.contextPath}/addBookServlet" method="post"  enctype="multipart/form-data">
		<!--标题  -->
		<!-- <h1
			style="background-color:#ffffff;text-align: center; margin: 20px 220px 20px 220px;padding: 5px 740px 5px 5px;"> -->
			<font size="1">当前位置：图书管理></font><font size="1" color="#0086ff">添加图书</font>
			<!-- </h1> -->
		<!-- 表格 -->
		<table bgcolor="white" border="1px solid gray" align="center" cellspacing="0" style="margin-top:50px;width:900px;" >
			<tr><td colspan="4" style="text-align:center;color:red;">${error_book_msg}</td></tr>
			<tr>
				<td  style="background-color:  #AFD1F4;padding:10px;text-align:center;">商品名称：</td>
				<td ><input type="text" name="name" style="margin:5px;" value="${book.name }" /></td>
				<td style="background-color:  #AFD1F4;padding:10px;text-align:center;">商品价格：</td>
				<td><input type="text" name="price"style="margin:5px;" value="${book.price }" /></td>
			</tr>
			<tr>
				<td style="background-color:  #AFD1F4;padding:10px;text-align:center;">商品数量：</td>
				<td><input type="text" name="pnum" style="margin:5px;" value="${book.pnum }"   /></td>
				<td style="background-color:  #AFD1F4;padding:10px;text-align:center;">商品类别：</td>
				<td><select name="category"  >
						<option>${book.category ==null?'--选择商品类别--': book.category}</option>
						<option  value="文学">文学</option>
						<option  value="文学">计算机</option>
						<option  value="文学">艺术</option>
						<option  value="文学">体育</option>
						<option  value="文学">社会学</option>
						<option  value="文学">经济学</option>
				</select></td>
			</tr>
			<tr>
				<td style="background-color:  #AFD1F4;padding:10px;text-align:center;">商品图片：</td>
				<td colspan="3"><input
					type="file" name="upload" size="30" value="" /></td>
			</tr>
			<tr>
				<td style="background-color:  #AFD1F4;padding:10px;text-align:center;">商品描述:</td>
				<td colspan="3"><textarea style="margin:5px;" name="description"  cols="70" rows="4" >${book.description }</textarea></td>
			</tr>
			<tr>
				<td colspan="4" style="background-color:  #AFD1F4;
				height:100px;text-align:center;">
				
				<input type="submit" value="确定" 	style="border-radius: 10px; 
			box-shadow: 5px 5px 5px #888888;padding: 5px 20px 5px 20px;
			background-color:#FCFDEF; border: 1px solid gray;color: black; "/>&nbsp;&nbsp;&nbsp;
				<input type="reset"style="border-radius: 10px; 
			box-shadow: 5px 5px 5px #888888;padding: 5px 20px 5px 20px;
			background-color:#FCFDEF; border: 1px solid gray;color: black; "/>&nbsp;&nbsp;&nbsp;
				<input type="button" value="返回"style="border-radius: 10px; 
			box-shadow: 5px 5px 5px #888888;padding: 5px 20px 5px 20px;
			background-color:#FCFDEF; border: 1px solid gray;color: black; "/>
				</td>
			</tr>


		</table>

	</form>

</body>
</html>